package org.example.service;

import org.example.mapper.DeptMapper;
import org.example.model.Dept;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptService {

    @Autowired
    private DeptMapper deptMapper;

    public Dept get(Long id) {
        return deptMapper.listDeptById(id);
    }

}
